Expand the container_remove hack
authorMatthias Clasen <mclasen@redhat.com>
Fri, 20 Nov 2015 20:30:29 +0000 (15:30 -0500)
committerMatthias Clasen <mclasen@redhat.com>
Fri, 20 Nov 2015 20:31:00 +0000 (15:31 -0500)
Make it possible to use gtk_container_remove on GtkShortcutsWindow.
glade needs this.

gtk/gtkcontainer.c

index 9c4b81d70a3f04072b4eda83127b2b11e8c6a575..48d16449959a40df178c68bf32eb1f4394dce6d7 100644 (file)
@@ -52,6 +52,7 @@
 #include "a11y/gtkcontaineraccessible.h"
 #include "a11y/gtkcontaineraccessibleprivate.h"
 #include "gtkpopovermenu.h"
+#include "gtkshortcutswindow.h"
 
 /**
  * SECTION:gtkcontainer
@@ -1894,7 +1895,8 @@ gtk_container_remove (GtkContainer *container,
   g_return_if_fail (_gtk_widget_get_parent (widget) == GTK_WIDGET (container) ||
                     GTK_IS_ASSISTANT (container) ||
                     GTK_IS_ACTION_BAR (container) ||
-                    GTK_IS_POPOVER_MENU (container));
+                    GTK_IS_POPOVER_MENU (container) ||
+                    GTK_IS_SHORTCUTS_WINDOW (container));
 
   g_object_ref (container);
   g_object_ref (widget);